<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>

<h:body title="Disciplines">
	<div class="c_block">
		<div class="title">Все дисциплины</div>
		<c:forEach var="discipline" items="${disciplines}">
			<div class="row">
				<div class="simple_l"><a href="<c:url value="/discipline/${discipline.id}"/>"><c:out value="${discipline.shortName}"/></a></div>
				<div class="simple_l"><a href="<c:url value="/discipline/${discipline.id}/delete"/>">Delete</a></div>
			</div>
		</c:forEach>
 	<span class="last">
		<a href="<c:url value="/discipline/new" />">Добавить дисциплину</a>
 	</span>
 </div>
</h:body>